/*
* @Author: Karry
* @Date:   2017-10-08 22:39:08
* @Last Modified by:   Karry
* @Last Modified time: 2017-11-05 16:32:12
*/

require('./index.css');
require('page/common/nav-simple/index.js');
var _db = require('util/db.js');

$(function(){
    var type     = _db.getUrlParam('type') || 'default',
        $element = $('.'+ type +'-success');
    if (type === 'payment') {
        var orderNumber  = _db.getUrlParam('orderNumber'),
            $orderNumber = $element.find('.order-number');
        $orderNumber.attr('href', $orderNumber.attr('href') + orderNumber);
    }
    // 显示对应的提升元素
    $element.show();
})